﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kugar.UI.RazorUI
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public class RazorForViewAttribute : Attribute
    {
        public RazorForViewAttribute(string url)
        {
            if (string.IsNullOrWhiteSpace(url))
            {
                throw new ArgumentNullException(nameof(url));
            }

            //if (url[0] != '/')
            //{
            //    url = '/' + url;
            //}

            Url = url;
        }

        public string Url { get; private set; }
    }
}
